﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Smartee.Modelling.Shapes;
using Smartee.Modelling.Objects;

namespace Smartee.Modelling
{
    public sealed class Drawing
    {
        private int _width;
        private int _height;

        private List<Item> _items = new List<Item>();

        public void Add(Item item) { _items.Add(item); }

        public void Accept(IVisitor visitor)
        {
            foreach (Item item in _items)
                foreach (Shape shape in item.Shapes)
                    shape.Accept(visitor);
        }
    }
}
